<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8" />
	<title>推广数据报表</title>
	<meta name="keywords" content="<{$title}>" />
	<meta name="description" content="<{$title}>" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0" />
	<include file="Common/headerStyle" />
	<style type="text/css">
	img.wp-smiley,
	img.emoji {
		display: inline !important;
		border: none !important;
		box-shadow: none !important;
		height: 1em !important;
		width: 1em !important;
		margin: 0 .07em !important;
		vertical-align: -0.1em !important;
		background: none !important;
		padding: 0 !important;
	}
	</style>
	<link rel="stylesheet" id="wptao-style-css" href="__PUBLIC__/home/getdata/style.css" type="text/css" media="all">
	
	<script language="javascript" src="__PUBLIC__/js/jquery-1.11.1.min.js"></script>
	<script language="javascript" src="__PUBLIC__/assets/js/date-time/bootstrap-datepicker.min.js"></script>	
	<script src="__PUBLIC__/assets/js/date-time/bootstrap-datepicker.zh-CN.js"></script>
	<link rel="stylesheet" href="__PUBLIC__/assets/css/datepicker.css" />
	
	<script src="__PUBLIC__/js/main.js"></script>	
</head>
<body>
<include file = "Common/header" />
	  <!-- 导航 -->
	  <div class="header_nav" style="">
		  <div class="menu-nav-container">
			<ul id="menu-HOME" class="menu">
		<!--li class="current-menu-index"><a href="__ACTION__/qun/<{$Think.get.qun|default='2'}>">首页</a></li-->
		<li class="current-menu-9"><a href="__MODULE__/Product/getAllData/qun/<{$Think.get.qun|default='2'}>">你的总库</a></li>
		<li class="current-menu-20"><a href="__MODULE__/Reportform/getList/qun/<{$Think.get.qun|default='2'}>">报表</a></li>	
		<li class="current-menu-qun"><a href="#"></a></li>
		<li class="current-menu-qun"><a href="#"></a></li>
	
		
			</ul>
			<a class="publish_btn islogin" target="_blank" href="#"><i></i>爱分享</a>	  </div>
		  </div>
	  <!-- 导航 end -->
	  
	</div>
	<!-- 头部 end -->
	
	<div id="header-mobile" class="mobile-header">
		<div class="header-container-wrapper">
		<div class="container header-mobile-wrapper">
		  <div class="header-mobile-inner">
			<div class="toggle-icon-wrapper toggle-mobile-menu" data-ref="nav-menu-mobile" data-drop-type="fly">
			  <div class="toggle-icon"> <span></span></div>
			</div>
			<div class="header-middle">
			  <a href="#"><i class="small-logo"></i> 优惠券</a> <span style="float:right">点击右上角在浏览器中打开↑</span>
			</div>
			<div class="header-customize">
			  <div class="header-customize-item"> </div>
			</div>
		  </div>
		  <div id="nav-menu-mobile" class="header-mobile-nav">
			<form class="search-form-menu-mobile" action="" method="get" name="productForm">
			  <input name="keywords" placeholder="请输入想找的宝贝" type="text">
			  <button type="submit"><i class="fa fa-search"></i></button>
			</form>
			<ul class="nav-menu-mobile">
		<!--li class="current-menu-index"><a href="__ACTION__/qun/<{$Think.get.qun|default='2'}>">首页</a></li-->
		<li class="current-menu-9"><a href="__CONTROLLER__/getAllData/qun/<{$Think.get.qun|default='2'}>">你的总库</a></li>
		<li class="current-menu-20"><a href="__MODULE__/Reportform/getList/qun/<{$Think.get.qun|default='2'}>">报表</a></li>	
		<li class="current-menu-qun"><a href="#"></a></li>
		<li class="current-menu-qun"><a href="#"></a></li>
	
		
			</ul>
			<div class="main-menu-bottom"></div>
		  </div>
		  <div class="main-menu-overlay"></div>
		</div>
	  </div>
	</div>
	<!-- /页头 -->


	<div class="main-container" id="main-container">
		<div class="main-container-inner">
			<div class="page-content">
				<div class="page-header">
					<h1>
						<{$title}>
						<small>
							<i class="icon-double-angle-right"></i>
							 查看--订单最后更新时间：<{$uptime}>【<font color="red">系统正常情况下5-10分钟自动更新一次</font>】
						</small>
					</h1>
					</div><!-- /.page-header -->	

	  <script>
	  $(document).ready(function(){
			$( "#datepicker_start" ).datepicker({
				format: 'yyyy-mm-dd',
				showOtherMonths: true,
				selectOtherMonths: false,
				//isRTL:true,
				language: 'zh-CN',
				autoclose: true,
				todayHighlight: true
			});
				$( "#datepicker_end" ).datepicker({
				 format: 'yyyy-mm-dd',
				showOtherMonths: true,
				selectOtherMonths: false,
				//isRTL:true,
				language: 'zh-CN',
				autoclose: true,
				todayHighlight: true
			});
 		});

  </script>
  
			<div class="alert alert-block alert-success">
				<div style="padding-bottom:24px;">
				<form action="" method="get" name="reportFrom1">
				  	<div class="col-sm-9">
						<label> 下单时间</label>
						<span class="input-icon input-icon-right">
							<input type="text" name="startTime" id="datepicker_start" />
							<i class="icon-leaf blue"></i>
						</span>
	
						<span class="input-icon input-icon-right">
							<input type="text"  name="endTime" id="datepicker_end" />
							<i class="icon-leaf green"></i>
						</span>
					</div>
					<input type="hidden" name="qun" value="<{$Think.get.qun|default='12'}>" />
					<input  type="submit" class="btn btn-info btn-sm" value="查询">
				
					
				</form>
				</div>
			</div> 
  
  

		
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->

						<div class="row">


							<div class="modal-body no-padding">
								<table class="table table-striped table-bordered table-hover no-margin-bottom no-border-top">
									<thead>
										<tr>
											<th>下单时间</th>
											<th style="width:200px;">商品信息</th>
											<!--th>商品ID</th-->

											<th>所属店铺	</th>
											<th>商品数</th>
											<!--th>商品单价</th-->
											<th>订单状态</th>
											<!--th>分成比率</th-->
											<th>付款金额</th>
											<!--th>结算金额</th-->
											<th>结算时间</th>
											<th>佣金比率</th>
											<th>佣金金额</th>
											<th>订单编号</th>
											<th>广告位名称</th>
											<th>订单类型</th>
											<th>操作</th>
										</tr>
									</thead>

									<tbody>
									
<volist name="list" id="list">			
										<tr>
											<td>
												<{$list.clicktime}></td>
											<td><{$list.goodstitle}></td>
											<!--td><{$list.goodsid}></td-->
											<td><{$list.shopname}></td>
											<td><{$list.goodsnums}></td>
											
											<!--td><{$list.goodsprice}></td-->
											<td>
												<if condition="$list.paybtn eq '1'">
													<b style="color:#FF0000;"><{$list.orderstatus}></b>
												<else />
													<{$list.orderstatus}>
												</if>												
											</td>
											<!--td><{$list.splitratio}></td-->
											<td><{$list.paymentamount}></td>
											<!--td><{$list.settlementamount}></td-->
											<td><{$list.settlementtime }></td>
											<td><{$list.commissionrate}></td>
											<td><{$list.commissionamount}></td>
											<td><{$list.ordernumber}></td>
											<td><{$list.groupname}></td>
											<td><{$list.ordertype}></td>
											<td><{$list.zhifu}>											
											<if condition="$list.paybtn eq '1'">
												<button onClick="apply_pay('<{$list.goodsid}>','<{$list.ordernumber}>','<{$Think.get.qun}>');">申请提现</buttion>
											<else /></if>											
											</td>
										</tr>
</volist>
										
									</tbody>
								</table>
							</div>

							<div class="modal-footer no-margin-top">

								<ul class="pagination pull-right no-margin">
									<li class="prev disabled">
									<{$page}>
									</li>
								</ul>
							</div>

								<div class="row">
									<div class="col-xs-12 col-sm-3 widget-container-span">
										<div class="widget-box">
											<div class="widget-header">
												<h5 class="smaller">交易进行中</h5>

												<div class="widget-toolbar">
													<span class="label label-success">
														<{$dealing.id}>单
														<i class="icon-arrow-up"></i>
													</span>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main padding-6">
													<div class="alert alert-info"> 可自行计算 </div>
												</div>
											</div>
										</div>
									</div>
									<div class="col-xs-12 col-sm-3 widget-container-span">
										<div class="widget-box">
											<div class="widget-header">
												<h5 class="smaller">交易完成，未提现</h5>

												<div class="widget-toolbar">
													<span class="label label-success">
														<{$unpay.id}>单
														<i class="icon-arrow-up"></i>
													</span>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main padding-6">
													<div class="alert alert-info"> <{$unpay.commissionamount}> ￥</div>
												</div>
											</div>
										</div>
									</div>
									<div class="col-xs-12 col-sm-3 widget-container-span">
										<div class="widget-box">
											<div class="widget-header">
												<h5 class="smaller">交易完成，提现中</h5>

												<div class="widget-toolbar">
													<span class="label label-success">
														<{$paying.id}>单
														<i class="icon-arrow-up"></i>
													</span>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main padding-6">
													<div class="alert alert-info"> <{$paying.commissionamount}> ￥</div>
												</div>
											</div>
										</div>
									</div>
									<div class="col-xs-12 col-sm-3 widget-container-span">
										<div class="widget-box">
											<div class="widget-header">
												<h5 class="smaller">交易完成，已提现</h5>

												<div class="widget-toolbar">
													<span class="label label-success">
														<{$payed.id}>单
														<i class="icon-arrow-up"></i>
													</span>
												</div>
											</div>

											<div class="widget-body">
												<div class="widget-main padding-6">
													<div class="alert alert-info"> <{$payed.commissionamount}> ￥</div>
												</div>
											</div>
										</div>
									</div>
									
									
									
									
								</div>
							
							
							
						</div><!-- /row -->

						<div class="hr hr32 hr-dotted"></div>



						<!-- PAGE CONTENT ENDS -->
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div>
			

		</div><!-- /.main-container-inner -->
	</div><!-- /.main-container -->

<!-- topnav -->
<div class="top_nav" id="fixed_topnav" style="top: 0px;">

  <div class="grid_auto top_nav_cot cf"> <a href="__MODULE__/Product/getAllData/qun/<{$Think.get.qun|default='2'}>" class="nav_logo_ico">优惠券直播</a>
	<ul class="menu">
    <!--li class="current-menu-index"><a href="__ACTION__/qun/<{$Think.get.qun|default='2'}>">首页</a></li-->
	<li class="current-menu-9"><a href="__MODULE__/Product/getAllData/qun/<{$Think.get.qun|default='2'}>">你的总库</a></li>
	<li class="current-menu-20"><a href="__MODULE__/Reportform/getList/qun/<{$Think.get.qun|default='2'}>">报表</a></li>	
	<li class="current-menu-qun"><a href="#"></a></li>
	<li class="current-menu-qun"><a href="#"></a></li>

	
		</ul>
    <div class="top_nav_search fr">
      <form action="" method="get" name="productForm">
        <input id="nav_keywords" class="nav_keywords txt_focus" name="keywords" placeholder="请输入想找的宝贝" autocomplete="off" type="text">
        <input class="nav_search_btn" value="" type="submit">
      </form>
    </div>
  </div>
</div>
<!-- topnav end-->
	<include file="Common/footer" />
	<include file = "Common/footerStyle" />
<script language="javascript" type="text/javascript">
	function apply_pay(goodsid,ordernumber,qun)
	{
		 $.ajax(
			{
				type: 'post',
				url: '/index.php/Home/Ajax/applyPay',
				cache:false,
				dataType: 'json',
				data: {"goodsid": goodsid,"ordernumber":ordernumber,"qun":qun},
				async: false,
				beforeSend:function()
				{//触发ajax请求开始时执行
				},                
				success: function (msg, textStatus) 
				{//有数据返回时
				//alert(msg.info);
					if(msg.result==1)
					{
						alert(msg.info);
						window.location.reload();
					}
					else
					{
					   //$("#kouling"+msg.info).html("获取失败");              
					}
				},
				error:function (textStatus) 
				{//网络繁忙 错误             
				},
				complete: function(msg, textStatus)
				{ //ajax请求完成时执行                 
					if(msg.result==1)
					{
					}
				}                
			}); 
	}
</script>
</body>
</html>


